package com.csxy.qiu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "EduVideo对象",description = "课程视频")
public class EduVideo {
    private static final long serialVersionUID = 1L;
    @Schema(name = "视频ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(name = "课程ID")
    private String courseId;

    @Schema(name = "章节ID")
    private String chapterId;

    @Schema(name = "节点名称")
    private String title;

    @Schema(name = "云端视频资源")
    private String videoSourceId;

    @Schema(name = "原始文件名称")
    private String videoOriginalName;

    @Schema(name = "排序字段")
    private Integer sort;

    @Schema(name = "播放次数")
    private Long playCount;

    @Schema(name = "是否可以试听，0收费 1免费")
    private Integer isFree;

    @Schema(name = "视频时长（秒）")
    private Float duration;

    @Schema(name = "Empty未上传 Transcoding转码中 Normal正常")
    private String status;

    @Schema(name = "视频源文件大小（字节）")
    private Long size;

    @Schema(name = "乐观锁")
    private Long version;


    @Schema(name = "创建时间",example = "2020-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(name = "更新时间",example = "2020-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
